package com.football.spwntr;

/**
 * Created by thoughtworker on 1/16/14.
 */
public class Player extends Participant {
    private String name;
    private int age;
    private String team;
    private int number;

    public Player(String name, int age, int number, String team) {
        this.name = name;
        this.age = age;
        this.team = team;
        this.number = number;
    }

    @Override
    public String toString() {
        return String.format("%d  ", number) + name + String.format(", %d, ", age) + team;
    }

    public String getName() {
        return name;
    }

    public int getNumber() {
        return number;
    }
}
